package 结构器模式.适配器模式.classadapter;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/4 14:45
 */

public class Client {
    public static void main(String[] args) {
        //创建计算机对象
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        String msg = computer.readSD(sdCard);

        System.out.println("s = " + msg);
        System.out.println("-----------------------------------读取tf卡");
        SDAdapterTF sdAdapterTF = new SDAdapterTF();
        String msgTF = computer.readSD(sdAdapterTF);
        System.out.println("msgTF = " + msgTF);
    }
}
